Skip to main content

All Questions

Tagged with
0votes
0answers
17views

Shortcuts running privileged commands

Intro: Using ABIs to control fan_speed, fn_lock, or conservation mode can be done with editing files in the (e.g. /sys/bus/platform/.../) directory which is owned by root. For example if i wanted to ...
white-hat-er's user avatar
1vote
1answer
1kviews

Running the "command" command as root using "sudo"

How to execute the Bash command command using sudo in order to run it as root? Using sudo command fails: $ sudo command ls sudo: command: command not found
user avatar
2votes
3answers
2kviews

sudo: What command(s) use to know its timeout, time remaining and if the timeout expired?

I know that sudo commandX asks for the user's password and if it is valid it executes commandX as root, until here all is ok. It is mandatory for some commands, such as apt, chown, chmod etc. It has ...
Manuel Jordan's user avatar
0votes
0answers
1kviews

sudo /etc/sudoers is world writable

I did pkexec chmod 555 /etc/sudoers.d" does not work for me due to pkexec having a permission promblem, get the PID of the shell you are running pkexec in suing "echo $$" then log in ...
othman issa's user avatar
0votes
1answer
324views

what is the safe/secure way to execute commands from website?

I'm working on a website from which some services are generated and need to be placed on the system folder, and those services might also need to start/stop using the systemctl command. Both commands ...
94Joe's user avatar
1vote
1answer
617views

Running Complex Command with SUDO

I need to run the following command with sudo (technically just the dd part of this command needs sudo): xz -d -c -v nvme0n1.dd.xz | xdelta3 -e -9 < (dd if=/dev/nvme0n1 bs=1GB) nvme0n1.dd.xdelta ...
Harry Muscle's user avatar
1vote
2answers
2kviews

Bash: Returns error without sudo

I'm running Kali Linux Live, and I was using the system as the root user for a long time before I came across an article online telling you NOT to use root as your default account, and that instead ...
Anonymous's user avatar
0votes
1answer
553views

How can I add a password into a "sudo" command?

I want to use When Gnome Scheduler to run this: sudo service fancontrol start As "sudo" needs a password, how can I add it into the command, so that it can be run successfully? Each time Mint ...
Matthew Wai's user avatar
0votes
2answers
5kviews

how to run a custom command start up application as root

I would like to make it so a terminal command runs every time I start up my computer, but the command I want to run requires root permissions. I enter in the command in the start up applications part ...
Nathan Hill's user avatar
0votes
1answer
2kviews

Having trouble running a command as another user on Ubuntu

I'm using Ubuntu 14.04. When logged in as root, I'm tryhing to run a command as anotehr (postgres). However, it is failing root@remotebox:/home/rails/myproject# su - postgres 'pg_upgradecluster 9.3 ...
Dave's user avatar
  • 2,738
2votes
3answers
657views

Does it make sudo more secure when indexing all commands by their SHA-2 checksums?

I'm asking myself whether system security substantially increases when I generate a security policy, i.e. sudoers file which contains one or more Cmnd_Alias definitions that enumerate all executable ...
Tim Friske's user avatar
0votes
1answer
1kviews

Linux Sudo Without Password Prompt [duplicate]

I want to run a bash command at startup (~/.config/autostart/myCommand.desktop) that requires sudo, but rather than it prompting me every time, I would like to include the password in the command, ...
Joe D's user avatar
7votes
1answer
77kviews

When I run "sudo su" I get --bash: command not found for everything

I'm not good with command lines or servers. But I needed to configure for work a AMI of EC2 AWS with LINUX So I've installed a lot of stuff, moved a lot of stuff around and then I realized that sudo ...
Michelle Colin's user avatar
0votes
0answers
186views

How to manage any command access privileges on debian linux

I am using Debian 7, and my desktop is xfce. I want to achieve managing any command on Linux. For example, executing /usr/bin/xfce4-taskmanager command would not require sudo privileges so any user ...
ibasaran's user avatar
4votes
1answer
2kviews

How to execute as the logged-in user in a sudo script (OSX)?

Is there a way to switch contexts like that? The script in my specific case is an installer postinstall script, which requires sudo privileges only for some of the tasks and requires the logged-in ...
Nikolay Tsenkov's user avatar

153050per page
close